package homework.homework2;

import javax.swing.*;

public class CaleJFrame extends JFrame {

    private UpPan up;

    private FloodrPan fp;

    public CaleJFrame(){
        this.setSize(500, 500);
        this.setDefaultCloseOperation(3);
        this.setLocationRelativeTo(null);
        this.setLayout(null);

        up = new UpPan();
        fp = new FloodrPan(up);
    //    this.add(up, BorderLayout.NORTH);
       // this.add(fp, BorderLayout.CENTER);
        this.add(up);
        this.add(fp);
        this.setVisible(true);
    }

    public static void main(String[] args){
        new CaleJFrame();
    }
}
